package com.example.administrator.fragmenttest_115wxy.service;


import com.example.administrator.fragmenttest_115wxy.bean.ArticleBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Administrator on 17/04/19.
 */

//文章访问的Retrofit接口

public interface ArticleService
{
    @GET("api.php/lists/mod/{mod}")
    Call<List<ArticleBean>> getResult(
            @Path("mod") String mod,
            @Query("page") int page,
            @Header("SessionID") String SessionID
    );

}
